{% extends "analysis_plugins/general_information.html" %}

{% block styles %}
    <link type="text/css" href="{{ url_for('static', filename='css/code_pre.css') }}" rel="stylesheet">
{% endblock %}

{% block analysis_result_details %}

{% for key, value in analysis_result.items() | sort %}
    <tr>
        <td>
            {{ key }}
        </td>
        <td class="m-0 p-0">
            <div class="clickable pt-2 pl-3" data-toggle="collapse" data-target="#{{ key }}">
                <i class="fas fa-angle-down mb-2 pt-2"></i>
            </div>

            <div class="collapse w-100" id="{{ key }}">
                {% if value | is_list %}
                    {% for item in value %}
                         <ul>
                            <li>{{ item }}</li>
                         </ul>
                    {% endfor %}
                {% else %}
                    <pre class="information-leaks-pre">{{ value }}</pre>
                {% endif %}
            </div>
        </td>
    </tr>
{% endfor %}

{% endblock %}
